<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?>﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>首页</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Content-Language" content="zh-CN"/>
    <meta name="Author" content="网页作者"/>
    <meta name="Copyright" content="网站版权"/>
    <meta name="keywords" content="网站关键字"/>
    <meta name="description" content="网站描述"/>
    <link href="favicon.ico" rel="shortcut icon"/>
    <link href="<?php echo CSS_PATH;?>/base_css/yahoo_init.css" rel="stylesheet" type="text/css"/>
    <link href="<?php echo CSS_PATH;?>/base_css/head_content.css" rel="stylesheet" type="text/css"/>
    <link href="<?php echo CSS_PATH;?>/base_css/index.css" rel="stylesheet" type="text/css"/>
    <link href="<?php echo JS_PATH;?>/base_js/video_js/video-js.css" rel="stylesheet" type="text/css"/>
    <script src="<?php echo JS_PATH;?>/base_js/jquery-1.8.3.min.js"></script>
    <script src="<?php echo JS_PATH;?>/base_js/base.js"></script>
    <script src="<?php echo JS_PATH;?>/base_js/video_js/video.js"></script>
    <script src="<?php echo JS_PATH;?>/jquery.min.js"></script>
    <script src="<?php echo JS_PATH;?>/base_js/html5.js"></script>

    <script>
        videojs.options.flash.swf = "<?php echo JS_PATH;?>/base_js/video_js/video-js.swf";
    </script>

    <script type="text/javascript">
        var img_path = '<?php echo IMG_PATH;?>';
        $(document).ready(function (e) {
            //总视频数(n-1)
            var consult_redio = 2;
            //切换视频代码
            $(".vid img").click(function () {
                var url = $(this).attr('url');
                var src = $(this).attr('src');
                var id = $(this).parent().index();
                $(".vv").html('<video id="' + id + '" class="video-js vjs-default-skin vjs-big-play-centered" controls preload="none" width="100%" height="100%" poster="' + src + '" autoplay="false" data-setup="{}"></video>');
                //	var song = "http://video-js.zencoder.com/oceans-clip.mp4";
                $(".vv video").attr("src", url);
                $(".vv video").attr("autoplay", "true");
            });
            //上下切换视频源方法
            $(".move img").click(function () {
                var id = $(this).attr('id');
                var vid = $(".vv video").attr('id');
                switch (id) {
                    case 'upvideo':
                        if (vid <= 0) {
                            return false;
                        }
                        else {
                            vid--;
                            var url = $(".holder ul li:eq(" + vid + ") img").attr('url');
                            var src = $(".holder ul li:eq(" + vid + ") img").attr('src');
                            $(".vv").html('<video id="' + vid + '" class="video-js vjs-default-skin vjs-big-play-centered" controls preload="none" width="100%" height="100%" poster="' + src + '" autoplay="false" data-setup="{}"></video>');
                            //	var song = "http://video-js.zencoder.com/oceans-clip.mp4";
                            $(".vv video").attr("src", url);
                            $(".vv video").attr("autoplay", "true");
                        }
                        break;
                    case 'downvideo':
                        if (vid >= consult_redio) {
                            return false;
                        }
                        else {
                            vid++;
                            var url = $(".holder ul li:eq(" + vid + ") img").attr('url');
                            var src = $(".holder ul li:eq(" + vid + ") img").attr('src');
                            $(".vv").html('<video id="' + vid + '" class="video-js vjs-default-skin vjs-big-play-centered" controls preload="none" width="100%" height="100%" poster="' + src + '" autoplay="false" data-setup="{}"></video>');
                            //	var song = "http://video-js.zencoder.com/oceans-clip.mp4";
                            $(".vv video").attr("src", url);
                            $(".vv video").attr("autoplay", "true");
                        }
                        break;
                    default:
                        return false;
                        break;
                }
            });
        });
    </script>
</head>

<body>

<div class="hony">
</div>
<div class="luminous">
</div>
<div class="main">
    <!--头部登录与导航-->
    <?php include template("proscenium/mouse","head"); ?>
    <!--主体content-->
    <div class="filter">
        <div class="content">
            <div class="cont-left">
                <?php include template("proscenium/mouse","left_status"); ?>
            </div>
            <!--下面需要添加的内容-->
            <div class="cont-right">
                <div class="search">
                </div>
                <?php include template("proscenium/mouse","right_status"); ?>
            </div>
            <div class="extended_one">
                <div class="cot">
                    <div class="title">
                        <!--首页title-->
                        <div style="text-align:center;width:32%;">
                            <span style="line-height:36px;color:#6699ff;">NEWS<span class="spsp"
                                                                                    style="padding-left: 8px;padding-right: 8px">热点新闻</span>
                                <a href="#">
                                    <font style="color:#04b6e3;">
                                        <img style="border: none;" src="<?php echo IMG_PATH;?>/images/more.png" width="4%"/>
                                        MORE
                                    </font>
                                </a></span>
                        </div>
                    </div>
                    <div class="bf">
                        <img style="border: none;" src="<?php echo IMG_PATH;?>/images/bf.png" width="100%"/>
                    </div>
                    <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=ffebfd2839a3617631436ef1e93fc092&action=lists&catid=7&order=id+DESC&num=2\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$data = $content_tag->lists(array('catid'=>'7','order'=>'id DESC','limit'=>'2',));}?>
                    <?php $n=1; if(is_array($data)) foreach($data AS $key => $val) { ?>
                    <div class="cn">
                        <div class="photo">
                            <a href="./index.php?m=content&c=index&a=news_detail&id=<?php echo $val['id'];?>"><img
                                    src="<?php echo $val['thumb'];?>" width="100%" height="100%" style="border:none"/></a>
                        </div>
                        <div class="le">
                            <a href="./index.php?m=content&c=index&a=news_detail&id=<?php echo $val['id'];?>"><font
                                    class="headline"><?php echo $val['title'];?></font></a>
                            <span class="substance"><?php echo $val['description'];?></span>
                        </div>
                        <a href="./index.php?m=content&c=index&a=news_detail&id=<?php echo $val['id'];?>">
                            <span
                                    class="peg">
                                <font><img style="border: none;" src="<?php echo IMG_PATH;?>/images/more2.png"/>
                                    MORE
                                </font>
                            </span>
                        </a>
                    </div>
                    <?php $n++;}unset($n); ?>
                    <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
                </div>
            </div>
        </div>
        <!--添加内容2-->
        <div class="extended_one">
            <div class="cot" style="border:none;">
                <div class="title">
                    <div class="title">
                        <!--首页title-->
                        <div style="text-align:center;width:32%;">
                            <span style="line-height:36px;color:#6699ff;">VIDEO<span class="spsp"
                                                                                     style="padding-left: 8px;padding-right: 8px">最新视频</span>
                                <a href="#"><font style="color:#04b6e3;">
                                    <img style="border: none;" src="<?php echo IMG_PATH;?>/images/more.png" width="4%"/ >
                                    MORE</font>
                                </a>
                            </span>
                        </div>
                    </div>
                </div>
                <div class="bf">
                    <img style="border: none;" src="<?php echo IMG_PATH;?>/images/bf.png" width="100%"/>
                </div>
                <div class="left">
                    <div class="holder">
                        <div class="move">
                            <img id="upvideo" src="<?php echo IMG_PATH;?>/images/Carousel_up.png"/>
                        </div>
                        <ul>
                            <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"get\" data=\"op=get&tag_md5=eca454e7ba5b30c8d8cbfcbad23e9bbe&sql=SELECT+a.thumb+as+thumb%2Cb.source_url+as+url+FROM+v9_video+a+LEFT+JOIN%0D%0A++++++++++++++++++++++++++++v9_video_data+b+ON+a.id+%3D+b.id+ORDER+BY+a.id+desc&return=video&num=3\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}pc_base::load_sys_class("get_model", "model", 0);$get_db = new get_model();$r = $get_db->sql_query("SELECT a.thumb as thumb,b.source_url as url FROM v9_video a LEFT JOIN
                            v9_video_data b ON a.id = b.id ORDER BY a.id desc LIMIT 3");while(($s = $get_db->fetch_next()) != false) {$a[] = $s;}$video = $a;unset($a);?>
                            <?php $n=1;if(is_array($video)) foreach($video AS $r) { ?>
                            <li class="vid">
                                <img url="<?php echo $r['url'];?>" src="<?php echo $r['thumb'];?>" width="100%" height="100%"/>
                            </li>
                            <?php $n++;}unset($n); ?>
                            <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
                        </ul>
                        <div class="move">
                            <img id="downvideo" src="<?php echo IMG_PATH;?>/images/Carousel_down.png"/>
                        </div>
                    </div>
                </div>
                <div class="right">
                    <div class="vv">
                        <video id="ved1" class="video-js vjs-default-skin vjs-big-play-centered" controls preload="none" width="100%" height="100%" autoplay="false" poster="<?php echo $video['0']['thumb'];?>"
                               data-setup="{}">
                            <source src="<?php echo $video['1']['url'];?>" type="video/<?php echo end(explode('.',$video[1][url]));?>"/>
                        </video>

                        <!--<video id="example_video_1" class="video-js vjs-default-skin vjs-big-play-centered" controls preload="none" width="100%" height="100%" poster="http://video-js.zencoder.com/oceans-clip.png" autoplay="false" data-setup="{}">-->
                            <!--<source src="<?php echo $video['1']['url'];?>" type="video/<?php echo end(explode('.',$video[1][url]));?>"/>-->
                            <!--&lt;!&ndash;<source src="<?php echo JS_PATH;?>/base_js/video_js/up.mp4" type='video/mp4' />&ndash;&gt;-->
                            <!--&lt;!&ndash;<source src="http://video-js.zencoder.com/oceans-clip.webm" type='video/webm' />&ndash;&gt;-->
                            <!--&lt;!&ndash;<source src="http://video-js.zencoder.com/oceans-clip.ogv" type='video/ogg' />&ndash;&gt;-->
                            <!--&lt;!&ndash;<track kind="captions" src="demo.captions.vtt" srclang="en" label="English"></track>&lt;!&ndash; Tracks need an ending tag thanks to IE9 &ndash;&gt;&ndash;&gt;-->
                            <!--&lt;!&ndash;<track kind="subtitles" src="demo.captions.vtt" srclang="en" label="English"></track>&lt;!&ndash; Tracks need an ending tag thanks to IE9 &ndash;&gt;&ndash;&gt;-->
                        <!--</video>-->
                    </div>
                </div>
            </div>
        </div>
        <div class="character"></div>
    </div>
    <!--页脚-->
    <?php include template("proscenium/mouse","foot"); ?>
</div>
</body>
</html>